//
//  ZWGAnimationTransition.h
//  QuickCure1
//
//  Created by Apple on 16/11/3.
//  Copyright © 2016年 maoge. All rights reserved.
//

/**管理全局的转场动画*/
#import <Foundation/Foundation.h>

#define KTransisonPageCurl @"pageCurl"
#define KTransisonRippleEffect @"rippleEffect"
#define KTransisonFade @"fade"
#define KTransisonMoveIn @"moveIn"
#define KTransisonSuckEffect @"suckEffect"


//方向
#define KTransitionFromRight @"kCATransitionFromRight"
#define kTransitionFromLeft  @"kCATransitionFromLeft"


@interface ZWGAnimationTransition : NSObject

+(instancetype)sharedAnimationTransition;


/**
 添加转场动画

 @param type     转场动画样式
 @param duration 持续时间
 @param subType  转场动画方向
 @param layer    动画添加到那个Layer
 */
-(void)addTransitionWithType:(NSString *)type duration:(CGFloat)duration subType:(NSString *const )subType layer:(CALayer *)layer;
@end
